import { BrowserRouter, useRoutes } from 'react-router-dom'
import React, { Suspense } from 'react'
import { routes_list } from './routes'

const RouterView = () => useRoutes(routes_list)

const Router = () => {
  return (
    <BrowserRouter>
      <Suspense>
        <RouterView></RouterView>
      </Suspense>
    </BrowserRouter>
  )
}


export default Router